const express = require('express')
const router = express.Router()

const toJson = (data) => {
    return JSON.stringify(data)
}

router.post('/login', (req, res) => {
    const body = {
        "msg": "操作成功",
        "code": 200,
        "token": "1234567890"
    }
    res.send(toJson(body))
})
router.post('/system/config/configKey/sys.user.initPassword', (req, res) => {
    const body = {
        "msg": "123456",
        "code": 200
    }
    res.send(toJson(body))
})


module.exports = router